package cn.tedu.store.commons.pojo.product.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 相册的DTO类
 *
 * @author RelentlessFlow
 * @version 0.0.1
 */
@Data
public class AlbumAddNewDTO implements Serializable {
    /**
     * 相册名称
     */
    @ApiModelProperty(value = "相册名称", required = true, example = "狗粮相册")
    @NotNull(message = "必须填写名称")
    private String name;
    /**
     * 相册简介
     */
    @ApiModelProperty(value = "相册简介", required = true, example = "狗粮相册的简介")
    @NotNull(message = "必须填写简介")
    private String description;
    /**
     * 相册排序序号
     */
    @ApiModelProperty(value = "排序序号", required = true, example = "25")
    @NotNull(message = "必须填写序号")
    @Range(min = 1,max = 255,message = "必须在[1,255]区间内")
    private Integer sort;
}
